fn prtinfo(array: &[i32]) {
    let len = array.len();
    println!("len = {}", len);
    for i in array {
        print!("{} ,", i);
    }
}

fn main() {
    let arr:[i32;5] = [0,1,2,3,4];
    let slic = &arr[..];
    prtinfo(slic);
    prtinfo(&arr[2..]);
    prtinfo(&arr[..2]);

}
